namespace RSA.Core
{
    public interface ICryptoProvider
    {
        void GenerateKeys(int length, out CryptoKey publicKey, out CryptoKey privateKey);

        byte[] Encrypt(byte[] data, CryptoKey key);

        byte[] Decrypt(byte[] data, CryptoKey key);
    }
}